package com.dhj.mall.service;

import java.util.List;

import com.dhj.mall.bean.Department;
import com.dhj.mall.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DepartmentService {

	
	@Autowired
	DepartmentMapper departmentMapper;
	
	
	public List<Department> getDepts() {
		
		List<Department> list = departmentMapper.selectByExample(null);
		return list;
	}

}
